home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: in1.uu.net!pilchuck!news
- From: Meiyu Lin <linm@data-io.com>
- Subject: Re: Help!! floating point error??
- X-Nntp-Posting-Host: inet-gw
- Content-Type: text/plain; charset=us-ascii
- Message-ID: <312CE073.718C@data-io.com>
- Sender: news@data-io.com (Usenet news)
- Content-Transfer-Encoding: 7bit
- Organization: Data I/O Corp.
- References: <312A504E.55A@cyberus.ca>
- Mime-Version: 1.0
- Date: Thu, 22 Feb 1996 21:30:27 GMT
- X-Mailer: Mozilla 2.0 (Win95; I)
-
- Brian Lawless wrote:
- >
- > I seam to have buggered up the ability of Borland C++(ver 4.5) to read in
- > floating point numbers on this machine. I am not having the same problem
- > when I run microsoft's visual C++ with my test code on the same machine.
- > This leads me to believe that the problem is isoloated with the Borland C++
- > settings.
- >
- > This is my very simple test code that I am using to track down this pesky
- > problem.
- >
- > #include <iostream.h>
- > int main()
- > {
- > float myfloat;
- > cout << "Float: ";
- > cin >> myfloat;
- > cout << "\N" << myfloat;
- > return 0;
- > }
- >
- > result: "floating point:overflow"
- >
- > I am very,very interested in any suggestions people might have to fix the
- > problem or alternatively any suggestions as to suitable reference material.
- >
- > Please note that I am also running Windows 95 with 8 megs of RAM.
- >
- > Thanks a bunch,
- >
- > Briantry : double myfloat
-